      
      //  表单验证规则
     export const rules={
        name:[
          {
              required: true,
              message:'用户是必传内容',
              trigger:'blur'
         },
         {
              pattern:/^[a-z0-9]{5,10}$/,
              message:'用户名是5-10个字母或数字',
              trigger:'blur'
         }
        ],
        password:[
           {
              required: true,
              message:'密码是必传内容',
              trigger:'blur'
          },
         {
              pattern:/^[a-z0-9]{3,}$/,
              message:'用户名是3位以上的字母或数字',
              trigger:'blur'
         }
        ]
      }